<%@ tag pageEncoding="UTF-8"%>
<%@ attribute name="nvgList" type="java.util.List" required="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tag" tagdir="/WEB-INF/tags" %>

<ul class="navtree">
	<tag:nvgTreeItems nvgList="${nvgList}"></tag:nvgTreeItems>
</ul>

<script type="text/JavaScript" defer="defer">
	$(document).ready(function(){
		$("a.tree_node").click(function(evt){
			var el=$(evt.target);
			el.toggleClass("tree_plus").toggleClass("tree_minus")
			$(".nvg_children_"+el.attr("for")).toggleClass("hide");
		});
		
		$("a.tree_node,a.tree_square").each(function(i,el){
			if($(el).attr("for")=='${art.id}'){
				$("#tree_note_"+$(el).attr("parent")).trigger("click");
				$($(el).next().find("a")).css("font-weight",800)
			}
		})
	})
</script>